From 51a81da82a8397da54e7c77bb921901b6a33c539 Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Thu, 25 Aug 2005 15:45:39 +0000 Subject: [PATCH] Cleanup vif entries in store when domain goes away. Signed-off-by: Christian Limpach --- tools/python/xen/xend/XendDomainInfo.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 8aaa3ea13f..6b0a3a2bcc 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -750,6 +750,11 @@ class XendDomainInfo: devdb['node'].getData()) typedb[dev].delete() typedb.saveDB(save=True) + if type == 'vif': + typedb = ddb.addChild(type) + for dev in typedb.keys(): + typedb[dev].delete() + typedb.saveDB(save=True) def show(self): """Print virtual machine info. -- 2.30.2